package cn.neusoft.controller;

import cn.neusoft.pojo.Business;
import cn.neusoft.query.BusinessQuery;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

@Api(value = "商家的API",description="商家相关的CRUD功能")
//@CrossOrigin   通过该注解我们完成允许跨域的设置   还可以通过配置类的方式来进行设置
@RestController
@RequestMapping("/business")
public class BusinessController extends BaseController<Business,BusinessQuery>{


//    @PostMapping("/all")    //  post  /xxx/all
//    public ResultBean getAll(@RequestBody BusinessQuery businessQuery){
//        System.out.println("-------BaseController-----getAll--------");
//        return baseService.getAll(businessQuery);
//    }



}
